import { createPinia } from 'pinia'
import useLoginStore from '../store/login/login'
import type { App } from 'vue'

const pinia = createPinia()

function registerStore(app: App<Element>) {
  app.use(pinia)

  // 用户进行刷新时加载缓存数据
  const loginStore = useLoginStore()
  loginStore.loadLocalCacheAction()
}

export default registerStore
